const getAllCategories=()=>{
    return $axios({
        url:'/category/findAll',
        method:'get'
    })
}
const addCategories=(params)=>{
    return $axios({
        url:'/category',
        method:'post',
        data:{...params}
    })
}
const deleteCategories=(id)=>{
    return $axios({
        url:`/category/${id}`,
        method:'delete',
    })
}
const findCategoriesById=(id)=>{
    return $axios({
        url:`/category/findById/${id}`,
        method:'get',
    })
}

const updateCategories=(params)=>{
    return $axios({
        url:`/category/update`,
        method:'put',
        data:{...params}
    })
}

